package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.server.handler.SendKeys;

public class sprg14 {

	public static void main(String[] args) throws InterruptedException {
		WebDriver driver= new FirefoxDriver();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		driver.get("http://www.yatra.com");
	//	driver.findElement(By.id("auto_origin"));
		Thread.sleep(1000);
	driver.findElement(By.id("auto_origin")).click();	
	Thread.sleep(1000);
    
	driver.findElement(By.id("auto_origin")).sendKeys(Keys.ARROW_DOWN);
	Thread.sleep(1000);
	driver.findElement(By.id("auto_origin")).sendKeys(Keys.RETURN);
	Thread.sleep(1000);
	driver.findElement(By.id("auto_origin")).sendKeys(Keys.SHIFT);
	//driver.findElement(By.id("auto_origin")).sendKeys(Keys.TAB);
	
	}
}
